From ce33a7f3cc25fa6a12c2032cc0c1c991d73a6892 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 13 Jan 2003 08:01:09 +0000 Subject: [PATCH] (Changing Properties): Say string indices are origin-0. --- lispref/text.texi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lispref/text.texi b/lispref/text.texi index 5bfc0a2f46d..2544e4d2ce9 100644 --- a/lispref/text.texi +++ b/lispref/text.texi @@ -2361,9 +2361,11 @@ range; more often, it is useful to add, change, or delete just certain properties specified by name. Since text properties are considered part of the contents of the -buffer (or string), and can affect how a buffer looks on the screen, any -change in buffer text properties marks the buffer as modified. Buffer -text property changes are undoable also (@pxref{Undo}). +buffer (or string), and can affect how a buffer looks on the screen, +any change in buffer text properties marks the buffer as modified. +Buffer text property changes are undoable also (@pxref{Undo}). +Positions in a string start from 0, whereas positions in a buffer +start from 1. @defun put-text-property start end prop value &optional object This function sets the @var{prop} property to @var{value} for the text -- 2.30.2